-- GENERATED SPELL FOR [Naxxramas Acolyte] --


function spell0_15981(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(56063,pUnit)
pUnit:RegisterEvent('Sorts_15981', 2000, 1)
end

function spell1_15981(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(56067,pUnit)
pUnit:RegisterEvent('Sorts_15981', 2000, 1)
end

function spell2_15981(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(56064,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15981', 3000, 1)
end

function spell3_15981(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(56065,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15981', 3000, 1)
end

function Sorts_15981(pUnit, Event)
local choix_sorts_15981 = math.random(0, 3)
if choix_sorts_15981 == 0 then
pUnit:RegisterEvent('spell0_15981', 1, 1)
end
if choix_sorts_15981 == 1 then
pUnit:RegisterEvent('spell1_15981', 1, 1)
end
if choix_sorts_15981 == 2 then
pUnit:RegisterEvent('spell2_15981', 1, 1)
end
if choix_sorts_15981 == 3 then
pUnit:RegisterEvent('spell3_15981', 1, 1)
end
end

function mob15981_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15981', math.random(1500, 3000), 1)
end

function mob15981_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15981_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15981_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15981, 1, 'mob15981_Action')
RegisterUnitEvent(15981, 2, 'mob15981_Leave')
RegisterUnitEvent(15981, 3, 'mob15981_Kill')
RegisterUnitEvent(15981, 4, 'mob15981_Die')
